<div class="gridConteudo">
    {CHAMA_FUNCAO funcao="getCaminhoPastaBanco" classe="imprimiConteudo"}
    <form class="form-actions" name="formGerador" id="formGerador" action="{$URLEXECUTE}banco/gerarFormulario.php" method="post" enctype="multipart/form-data">
        <legend>GERADOR DE FORMULÁRIOS</legend>
        <div class="divForm">
            <div class="span12 offset0 divBotoesCima">
                <center>
                    <button class="btn btn-personalizado" type="button" onclick="executaAjaxGetConteudoComPost('{$LINKVIEW}', 'formGerador', 'conteudoViewGerador')">Visualizar</button>
                    <button class="btn btn-personalizado" type="submit">Gerar</button>
                    <button class="btn btn-personalizado" type="button" onclick="window.location = '{$smarty.const.URL_ADMIN}'">Cancelar</button>
                </center>
            </div>
            <input type="hidden" id="acao" class="acao" name="acao" value="0"/>
            <input type="hidden" id="url" class="url" name="url" value="{$URLATUAL}"/>
            {*}BOTÕES FORMULARIO{*}
            {if $smarty.const.MSG}
                <div class="alert {$smarty.const.TIPO_MSG}" align="center">
                    <button class="close" data-dismiss="alert" onClick='recarregarSemParametro()' type="button">×</button>
                    <strong>{$smarty.const.TITULO_MSG}</strong>
                    {$smarty.const.MSG}
                </div>
            {/if}
            {*}###################################################################################{*}
            {*}###################################################################################{*}
            {*}###################################################################################{*}

            <label class="label-xlarge" for="id_pasta">Tabelas:
                {CHAMA_FUNCAO funcao="getCombo" classe="imprimiConteudo" 
                         class="input-xlarge" name="TABLE_NAME" noStatus="1" tabela="information_schema.tables" 
                         campo="TABLE_NAME" id="TABLE_NAME" valor="$TABLE_NAME" condicao="table_schema='{$smarty.const.NOME_PORTAL}'" 
                         atributo="onchange='executaAjaxGetConteudo(\"{$LINKAJAX}\",\"&tabela=\"+this.value,\"conteudoGerador\")'"}
            </label>
            <div class="conteudoGerador">
                {$DADOS_GERADOR}
            </div>
            <div class="conteudoViewGerador">
                {$DADOS_VIEW_GERADOR}
            </div>
            {*}BOTÕES FORMULARIO{*}
            <div class="span12 offset0 divBotoesBaixo">
                <center>
                    <button class="btn btn-personalizado" type="button" onclick="executaAjaxGetConteudoComPost('{$LINKVIEW}', 'formGerador', 'conteudoViewGerador')">Visualizar</button>
                    <button class="btn btn-personalizado" type="submit">Gerar</button>
                    <button class="btn btn-personalizado" type="button" onclick="window.location = '{$smarty.const.URL_ADMIN}'">Cancelar</button>
                </center>
            </div>
            {*}BOTÕES FORMULARIO{*}
    </form>

</div>